#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QFile>
#include <QDebug>
#include <QThread>
#include "total.h"
#include "beep.h"

class Total;       //解决循环包含问题

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    Total *total;
    int i = 1;
    int Num[7] = {0};
    int Price[7] = {0,3,3,4,3,5,7};
    QString image_url;
    QString createImageUrl(int i);
    void UI_init();
    ~MainWindow();

private slots:
    void pushButton_pressed();
    void pushButton_2_pressed();
    void pushButton_3_pressed();
    void pushButton_4_pressed();
    void pushButton_5_pressed();
    void pushButton_6_pressed();
    void pushButton_7_pressed();

private:
    Ui::MainWindow *ui;
    Beep *beep;
};
#endif // MAINWINDOW_H
